package com.hb;

import com.hb.config.KnightConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Knight {
    public static void main(String[] args) throws Exception {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(KnightConfig.class);
        com.hb.interfaces.Knight knight = context.getBean(com.hb.interfaces.Knight.class);
        knight.embarkOnQuest();
        context.close();
    }
}
